Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow specifying a custom font for the card text #110

Merged

Conversation

shuuji3
Copy link
Contributor

@shuuji3 shuuji3 commented Sep 8, 2023

resolve #108

Hello, this PR implements the custom font setting and the default "Roboto" font. I encountered the same issue as #108 when I tried to use this for the Japanese translation of psycopg3 documentation. This should be helpful for any Sphinx project written in non-Latin languages.

I validated this change on the Debian container with Noto CJK font installed by apt install fonts-noto-cjk. Here are examples:

Before
image

After
image

I think this won't change the default Roboto Flex fallback behavior, but let me know if this needs any adjustment. Thanks.

Copy link
Member

@Daltz333 Daltz333 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooo

@Daltz333 Daltz333 mentioned this pull request Sep 8, 2023
@zhudotexe
Copy link

Awesome! @Daltz333 is there anything blocking merging this PR? We'd love to be able to use the social image card generation.

@Daltz333 Daltz333 merged commit fd959a7 into wpilibsuite:main Oct 27, 2023
50 checks passed
@shuuji3
Copy link
Contributor Author

shuuji3 commented Oct 28, 2023

Thanks! 😃

@shuuji3 shuuji3 deleted the feat/support-ogp-social-cards-font-option branch October 28, 2023 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bundled Roboto font does not support Japanese (social images)
3 participants